package com.xingkeduo.dao.database.mysql.condition;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * 文件概述
 *
 * @author wangxilong <wangxilong@xingkeduo.com>
 * @version id:v0.1 18-12-28 下午11:24
 * @package BeautyOS
 * @copyright Copyright (c) XKD 2019
 */
public class MysqlMessageCondition implements Condition {
    @Override
    public boolean matches(ConditionContext arg0, AnnotatedTypeMetadata arg1) {
        return System.getProperty("serviceDatabases").indexOf(",MYSQL_MESSAGE,") > -1;
    }
}
